package com.yehebl.orm.config;
/**
 *
 * 默认的配置
 * @author tzd
 * @Date 2021年3月12日下午2:52:26
 *
 */
public class DefaultDsConfig extends AbstractDsConfig {
	private final String scanPack;
	private String scanXml;
	
	public DefaultDsConfig(String scanPack,String scanXml) {
		if(scanPack==null){
			throw new RuntimeException("扫描的包不能为空");
		}
		this.scanPack=scanPack;
		this.scanXml=scanXml;
	}
	public DefaultDsConfig(String scanPack) {
		if(scanPack==null){
			throw new RuntimeException("扫描的包不能为空");
		}
		this.scanPack=scanPack;
	}
	
	@Override
	public String getScanPackage() {
		return scanPack;
	}
	
	@Override
	public String getScanXml() {
		return scanXml;
	}

}
